/*
 * @Author: your name
 * @Date: 2021-01-06 14:11:16
 * @LastEditTime: 2021-03-24 22:21:09
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \express-seed\routes\admin\index.js
 */
// 引入路由
// const express = require('express')
const indexRouter = require('./home');
const usersRouter = require('./users');
const imgRouter = require('./img')
const projectCode = require('./projectCode')
const staRouter = require('./sta')
const menuRouter = require('./menu')
const stateRouter = require('./state')
// var app = express();
// 使用路由
module.exports = (app)=> {
    app.use('/api/admin', indexRouter);
    app.use('/api/admin/users', usersRouter);
    app.use('/api/admin/img', imgRouter)
    app.use('/api/admin/project_code', projectCode)
    app.use('/api/admin/sta', staRouter)
    app.use('/api/admin/menu', menuRouter)
    app.use('/api/admin/state', stateRouter)
}
